package com.zhangdi.mserver.searchcli.config;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestClientBuilder;

//@Configuration
public class ESConfigurer {
//    @Bean(name = "mClientBuilder")
    public RestClientBuilder restClientBuilder(){
        HttpHost node = new HttpHost("127.0.0.1", 9200);
        RestClientBuilder builder = RestClient.builder(node);
        return builder;
    }
}
